package controller.link.battle;

import view.client.Console;
import model.Hearer;
import java.io.Serializable;
import controller.Link;
import model.game.Skill;
import model.Attendant;
import model.Server;

public class PlayerAttack implements Link, Serializable {

    private Skill skill;

    public PlayerAttack() {
    }

    public PlayerAttack(Hearer h, Skill s) {
        this.skill = s;
        h.send((Link) this);
    }

    @Override
    public void serverUse(Server server, Attendant at) {
        server.getBattle(at).move(at, skill);
    }

    @Override
    public void clientUse(Console console) {
    }
}
